package com.toobigtofail.placeholders
{
	import Box2D.Dynamics.b2Body;
	
	import com.toobigtofail.entities.BuildingBlock;
	import com.toobigtofail.images.ShapeImage;
	import com.toobigtofail.shapes.IShape;
	import com.toobigtofail.shapes.Octagon;
	
	import net.flashpunk.Entity;
	import net.flashpunk.utils.Draw;
	import net.flashpunk.utils.Input;
	import net.flashpunk.utils.Key;
	
	public class OctagonPlaceholder extends Placeholder
	{
		public function OctagonPlaceholder(x:Number=0, y:Number=0)
		{
			this.x = x;
			this.y = y;
		
			var img:ShapeImage = getImage();
			
			graphic = img;
									
			width = img.width;
			height = img.height;
		}
		
		override public function getShape():IShape {
			return new Octagon(x + width/2,y + height/2,width/60,height/60, b2Body.b2_dynamicBody);			
		}
		
		override public function getImage():ShapeImage {
			return new ShapeImage("octagon", "BuildingBlock");
		}
	}
}